package com.mz.ozy.mvp.model;

import android.content.Context;

import com.mz.ozy.constants.Constants;
import com.mz.ozy.net.RetrofitUtils;
import com.mz.ozy.utils.JsonUtils;

import java.util.HashMap;
import java.util.Map;

import io.reactivex.Observable;
import okhttp3.ResponseBody;

/**
 * Created by administrator on 2018/12/3.
 */
public class TrainCommentModel {

    public Observable<ResponseBody> queryCommentList(Context context, String cid, String type, int pageNo) {
        Map<String, String> jsonObject = new HashMap<>();
        jsonObject.put("id", cid);
        jsonObject.put("type", type);
        jsonObject.put("pageNo", String.valueOf(pageNo));
        jsonObject.put("pageSize", Constants.PageSize);
        return RetrofitUtils.getApiService(context).post(Constants.TransCode.TransCode10125, JsonUtils.requestJsonDate(jsonObject), Constants.tokenId);
    }
}


